﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FeiShuiJK.aspx.cs" Inherits="Web.Pages.YongShui.ZhangWuGL.FeiShuiJK" Theme="Default" ValidateRequest="false" %>

<%@ Register Assembly="DevExpress.Web.v15.2, Version=15.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>

    <script type="text/javascript">
        var tTime = 0;
        function RefrushPage() {
            btnRefrush.OnClick();
            clearInterval(tTime);
        }
        
        function MakeFile(s, e)
        {
            tTime = window.setInterval(RefrushPage, 1800);
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <div class="tabletitle1" align="center">
            非税接口
        </div>
        <asp:UpdatePanel ID="updatePanel1" runat="server">
            <ContentTemplate>
                <div>
                    <div>
                        <table style="text-align: left; width: 100%;">
                            <tr>
                                <td style="float: left;"><span style="font-size: 12px;">账务年月：</span></td>
                                <td style="float: left;">
                                    <dx:ASPxTextBox ID="txtZhangWuNY" Width="60%" runat="server" Enabled="true">
                                    </dx:ASPxTextBox>
                                </td>
                                <td style="float: left;">
                                    <dx:ASPxButton ID="btnRefrush" runat="server" Text="刷新" OnClick="btnRefrush_Click" ClientInstanceName="btnRefrush" >
                                    </dx:ASPxButton>
                                </td>
                                <td style="">
                                     <dx:ASPxLoadingPanel runat="server" ID="LoadPanel11" ClientInstanceName="LoadPanel" Text="正在生成...."></dx:ASPxLoadingPanel> 
                                    <dx:ASPxButton ID="btnShengChengSJ" runat="server" Text="生成数据" OnClick="btnShengChengSJ_Click" UseSubmitBehavior="false">
                                         <ClientSideEvents Click="function(s,e){LoadPanel.Show();}"/>
                                    </dx:ASPxButton>
                                </td>
                                <td style="">
                                    <dx:ASPxButton ID="btnShengChengWJ" runat="server" Text="生成文件" OnClick="btnShengChengWJ_Click" >
                                         <ClientSideEvents Click="MakeFile"/>
                                    </dx:ASPxButton>
                                </td>
                                <td style="">
                                    <dx:ASPxButton ID="btnQuXiaoWJ" runat="server" Text="取消文件" OnClick="btnQuXiaoWJ_Click" UseSubmitBehavior="false">
                                    </dx:ASPxButton>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <hr />
                    <div style="width: 100%;">
                        <div style="float: left; width: 50%;">
                            <fieldset style="border: 1px solid #a3c0e8;">
                                <legend>未上传</legend>
                                <dx:ASPxGridView ID="gvWeiShangC" runat="server" AutoGenerateColumns="False" KeyFieldName="I_ZHANGWUNY" Theme="Aqua1" Width="100%">
                                    <Columns>
                                        <dx:GridViewDataTextColumn FieldName="I_ID" Caption="编号" Width="10%">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn FieldName="S_WENJIANM" Caption="文件名" Width="60%">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn FieldName="I_ZHANGWUNY" Caption="账务年月" Width="30%">
                                        </dx:GridViewDataTextColumn>
                                    </Columns>
                                    <Settings VerticalScrollableHeight="300" VerticalScrollBarMode="Auto" HorizontalScrollBarMode="Auto" />
                                </dx:ASPxGridView>
                            </fieldset>
                        </div>
                        <div style="float: right; width: 50%;">
                            <fieldset style="border: 1px solid #a3c0e8;">
                                <legend>已上传</legend>
                                <dx:ASPxGridView ID="gvYiShangC" runat="server" AutoGenerateColumns="False" KeyFieldName="I_ZHANGWUNY" Theme="Aqua1" Width="100%">
                                    <Columns>
                                        <dx:GridViewDataTextColumn FieldName="I_ID" Caption="编号" Width="10%">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn FieldName="S_WENJIANM" Caption="文件名" Width="60%">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn FieldName="I_ZHANGWUNY" Caption="账务年月" Width="30%">
                                        </dx:GridViewDataTextColumn>
                                    </Columns>
                                    <Settings VerticalScrollableHeight="300" VerticalScrollBarMode="Auto" HorizontalScrollBarMode="Auto" />
                                </dx:ASPxGridView>
                            </fieldset>
                        </div>
                        
                    </div>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
        <%--<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="生成文件" />--%>
    </form>
    
</body>
</html>
